package com.wmm.renwu1;

public abstract class AbstractCaloulator {

    public int splitExpression(String exp, String op){
        String[] sArr = exp.split(op);
        return calculate(Integer.parseInt(sArr[0]),Integer.parseInt(sArr[1]));
    }

    public abstract int calculate(int a,int b);
}
